negotiator.analysis
Class ParetoTest

java.lang.Object
  extended by negotiator.analysis.ParetoTest

public class ParetoTest
extends java.lang.Object

This class can be used to test if the implementation of the Pareto frontier algorithm in BidSpace returns the correct results on each domain. The efficient algorithm is compared against a simple bruteforce algorithm. No effort was made to optimize the bruteforce algorithm as I wanted to be sure that it is correct. Therefore, it is not advised to check domains with more than 200.000 bids.

Author:
Mark Hendrikx

Constructor Summary
ParetoTest()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static void process(java.lang.String dir)
          Simple method to compare if the algorithm for calculating the Pareto-bids in the BidSpace class returns the right results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParetoTest

public ParetoTest()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Parameters:
args - are ignored.
Throws:
java.lang.Exception - may occur if there are problems reading files.

process

public static void process(java.lang.String dir)
                    throws java.lang.Exception
Simple method to compare if the algorithm for calculating the Pareto-bids in the BidSpace class returns the right results.

Parameters:
dir - in which Genius is installed
Throws:
java.lang.Exception - when an error occurs on parsing the files.